package com.kaili.basic.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @Desc: 货源新增
 * @author: renzhikun
 * @Time: 18-12-11 下午3:33
 * @Copyright: ©  杭州凯立通信有限公司 版权所有
 * @Warning: 本内容仅限于公司内部传阅, 禁止外泄或用于其它商业目的
 */
@Data
@ApiModel(description = "货源新增Dto")
public class BaseSupplyAddDTO {

    @ApiModelProperty("货源ID")
    private Long supplyId;

    @ApiModelProperty("货源编号")
    private String supplyCode;

    @NotEmpty(message = "联系人不能为空")
    @ApiModelProperty("联系人")
    private String contacts;

    @NotEmpty(message = "联系电话不能为空")
    @ApiModelProperty("联系电话")
    private String telephone;

    @NotEmpty(message = "货源公司不能为空")
    @ApiModelProperty("货源公司")
    private String supplyName;

    @NotEmpty(message = "地址不能为空")
    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("网点")
    private Long siteId;

    @ApiModelProperty("结算模式")
    private Long settlement;

}
